-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backport 0.3: Update nixpkgs 24.11 #112
Conversation
@@ -101,7 +105,7 @@ | |||
buildInputs = [ | |||
pkgs.go | |||
pkgs.perl | |||
]; | |||
] ++ (pkgs.lib.optionals pkgs.stdenv.isDarwin apple_sdk); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: Do we need to check isDarwin
and the system? Also, if it's just one package then we can use the lib.optional
function instead.
] ++ (pkgs.lib.optionals pkgs.stdenv.isDarwin apple_sdk); | |
] | |
# On intel macs, the default SDK is still 10.12 and Holochain won't build against that because we're | |
# using a newer Go version. So override with the newest SDK available for x86_64-darwin. | |
++ (pkgs.lib.optional (if system == "x86_64-darwin") pkgs.apple-sdk_10_15); |
This really is just a style thing though so I leave the decision up to you 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 It's a little more precise, though it makes no difference to the aarch64 systems.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't really no, but since this change is being backported, I'd rather not just fix this on 0.3. I'll put a PR to tidy this up on main
and leave main-0.3 and main-0.4 as they are
|
||
# On intel macs, the default SDK is still 10.12 and Holochain won't build against that because we're | ||
# using a newer Go version. So override with the newest SDK available for x86_64-darwin. | ||
apple_sdk = if system == "x86_64-darwin" then [ pkgs.apple-sdk_10_15 ] else [ ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the comment below.
# On intel macs, the default SDK is still 10.12 and Holochain won't build against that because we're | |
# using a newer Go version. So override with the newest SDK available for x86_64-darwin. | |
apple_sdk = if system == "x86_64-darwin" then [ pkgs.apple-sdk_10_15 ] else [ ]; |
No description provided.